class MainIngredient {
  String? amount;
  String? id;
  String? is_c;
  String? title;

  MainIngredient({this.amount, this.id, this.is_c, this.title});

  factory MainIngredient.fromJson(Map<String, dynamic> json) {
    return MainIngredient(
      amount: json['amount'],
      id: json['id'],
      is_c: json['is_c'],
      title: json['title'],
    );
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['amount'] = this.amount;
    data['id'] = this.id;
    data['is_c'] = this.is_c;
    data['title'] = this.title;
    return data;
  }
}
